import { getCollectionListApi } from '@/service/api/businessApi';
export function warningHooks() {
  const getGetewayList = async (projectId?: any) => {
    const res = await getCollectionListApi({ projectId, pageNo: 1, pageSize: 1000 });
    if (res?.data?.data) return res.data.data;
    return [];
  };

  return {
    getGetewayList
  };
}
